﻿<ui:View x:Class="CPPEI.Coolzon.Designer.Views.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:ui="clr-namespace:CPPEI.Coolzon.UI;assembly=CPPEI.Coolzon.UI"
             xmlns:src="clr-namespace:CPPEI.Coolzon.Designer.Views"
            xmlns:avalonDock="http://schemas.xceed.com/wpf/xaml/avalondock"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="1024" ClipToBounds="True" Loaded="View_Loaded"   >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <src:HeaderView x:Name="_ctlHeaderView" Grid.Row="0" />
        <src:StatusView x:Name="_ctlStatusView" Grid.Row="2" Height="27">
        </src:StatusView>
        <avalonDock:DockingManager Grid.Row="1" x:Name="_ctlDockingManager"  AllowMixedOrientation="True"   GridSplitterWidth="7" GridSplitterHeight="7">
            <avalonDock:DockingManager.Theme>
                <avalonDock:MetroTheme/>
            </avalonDock:DockingManager.Theme>
            <avalonDock:DockingManager.DocumentHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Title}" TextTrimming="CharacterEllipsis"/>
                </DataTemplate>
            </avalonDock:DockingManager.DocumentHeaderTemplate>
            <avalonDock:LayoutRoot >
                <avalonDock:LayoutPanel>
                    <avalonDock:LayoutAnchorablePane DockWidth="200" DockMinWidth="50">
                        <avalonDock:LayoutAnchorable x:Name="_ctlSolutionAnchorable" AutoHideWidth="200"  ContentId="SolutionAnchorable" Title="解决方案资源管理器" ToolTip="解决方案资源管理器" IsVisibleChanged="_ctlAnchorable_IsVisibleChanged" CanClose="False">
                            <src:SolutionView x:Name="_ctlSolutionView"/>
                        </avalonDock:LayoutAnchorable>
                    </avalonDock:LayoutAnchorablePane>
                    <avalonDock:LayoutDocumentPaneGroup>
                        <avalonDock:LayoutDocumentPane>
                            <avalonDock:LayoutDocument  ContentId="documentScene" Title="场景" CanClose="True" CanFloat="False" Closing="_ctlScene_Closing"  >
                                <src:DesignView x:Name="_ctlDesignView"/>
                            </avalonDock:LayoutDocument>
                        </avalonDock:LayoutDocumentPane>
                    </avalonDock:LayoutDocumentPaneGroup>
                </avalonDock:LayoutPanel>
                <avalonDock:LayoutRoot.LeftSide>
                    <avalonDock:LayoutAnchorSide>
                        <avalonDock:LayoutAnchorGroup>
                            <avalonDock:LayoutAnchorable  AutoHideWidth="200" Title="工具箱" ContentId="ToolboxAnchorable" IsVisibleChanged="_ctlAnchorable_IsVisibleChanged" CanClose="False"  >
                                <src:ToolboxView x:Name="_ctlToolboxView"/>
                            </avalonDock:LayoutAnchorable>
                        </avalonDock:LayoutAnchorGroup>
                    </avalonDock:LayoutAnchorSide>
                </avalonDock:LayoutRoot.LeftSide>
                <avalonDock:LayoutRoot.RightSide>
                    <avalonDock:LayoutAnchorSide>
                        <avalonDock:LayoutAnchorGroup >
                            <avalonDock:LayoutAnchorable AutoHideWidth="200" ContentId="PropertyAnchorable" Title="属性" IsVisibleChanged="_ctlAnchorable_IsVisibleChanged" CanClose="False">
                                <src:PropertyView x:Name="_ctlPropertyView"/>
                            </avalonDock:LayoutAnchorable>
                            <avalonDock:LayoutAnchorable AutoHideWidth="200" ContentId="EventAnchorable" Title="事件" IsVisibleChanged="_ctlAnchorable_IsVisibleChanged" CanClose="False">
                                <src:EventView x:Name="_ctlEventView"/>
                            </avalonDock:LayoutAnchorable>
                            <avalonDock:LayoutAnchorable AutoHideWidth="200" Title="组件树" ContentId="PartTreeAnchorable" IsVisibleChanged="_ctlAnchorable_IsVisibleChanged" CanClose="False"  >
                                <src:PartTreeView x:Name="_ctlPartTree"/>
                            </avalonDock:LayoutAnchorable>
                        </avalonDock:LayoutAnchorGroup>
                    </avalonDock:LayoutAnchorSide>
                </avalonDock:LayoutRoot.RightSide>
            </avalonDock:LayoutRoot>
        </avalonDock:DockingManager>
    </Grid>
</ui:View>
